<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <ul id="demo">
        <li>1</li><li>2</li><li>3</li><li>4</li><li>5</li><li>6</li>
    </ul>
    <script src="./zepto.min.js"></script>
    <script>
        $(function () {
            $('#demo').on("click","li",function(){
                console.log($(this).html());
            })
            $('#demo').append('<li>a</li>');//虽然这里面多了一个li标签，但是最后一个li标签不需要重新绑定点击事件
        })
    </script>
</body>

</html>